module.exports = {
  publicPath: process.env.NODE_ENV === 'production' ? './' : '/',
  lintOnSave: false, //eslint
  devServer: {
    open: false, //自动弹出浏览器页面
    host: 'localhost',
    port: '8080',
    https: false, //使用https协议
    hotOnly: true, //热更新
    compress: true,
    proxy: {
      '/api': {
        target: 'https://lab.isaaclin.cn',
        secure: false
        // changeOrigin: true,
        // pathRewrite: {
        //   '^/api': 'https://lab.isaaclin.cn/nCoV/api',
        // },
      },
    },
  },
}
